<?php

namespace app\api\model;
use think\Model;
use think\Config;

class NewsType extends Model
{
    protected $table = 'jk_news_types';

     //图片拼接域名
    public function getWeixinIconAttr($value)
    {
        return Config::get('web.pic_url')['nav'] . $value;
    }

    //所属模块
    public function getModularAttr($value)
    {
        $status = [
            '1'=>'交易模块',
            '2'=>'分享交流', 
        ];

        return $status[$value];
    }

}
